home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume15 / dmake-3.6 / patch03 < prev    next >
Encoding:
Text File  |  1990-12-16  |  38.9 KB  |  1,039 lines

  1. Newsgroups: comp.sources.misc
  2. X-UNIX-From: dvadura@watdragon.waterloo.edu
  3. subject: v15i092: dmake version 3.6 patch 1 (part 03/5)
  4. from: Dennis Vadura <dvadura@watdragon.waterloo.edu>
  5. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  6.  
  7. Posting-number: Volume 15, Issue 92
  8. Submitted-by: Dennis Vadura <dvadura@watdragon.waterloo.edu>
  9. Archive-name: dmake-3.6/patch03
  10.  
  11. #!/bin/sh
  12. # this is part 3 of a multipart archive
  13. # do not concatenate these parts, unpack them in order with /bin/sh
  14. # file dm36.p1 continued
  15. #
  16. CurArch=3
  17. if test ! -r s2_seq_.tmp
  18. then echo "Please unpack part 1 first!"
  19.      exit 1; fi
  20. ( read Scheck
  21.   if test "$Scheck" != $CurArch
  22.   then echo "Please unpack part $Scheck next!"
  23.        exit 1;
  24.   else exit 0; fi
  25. ) < s2_seq_.tmp || exit 1
  26. sed 's/^X//' << 'SHAR_EOF' >> dm36.p1
  27. XX!    Two command interpretters are supported in the shipped startup.mk file,
  28. XX!    command.com, and the MKS Korn shell.
  29. XX  
  30. XX!    dmake does not contain any builtin commands.  It gets all commands it
  31. XX!    executes from an external file system.  It is therefore most useful if it
  32. XX!    is used in conjunction with an environment similar to that provided by
  33. XX!    the MKS Tool kit, or equivalent.
  34. XX  
  35. XX!    dmake now supports the MKS argument passing conventions.  The facility is
  36. XX!    enabled by setting .MKSARGS:=1 and is set by default in the startup.mk file
  37. XX!    if an MKS Korn shell is detected as being the active command interpretter.
  38. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/patchlvl.h    Sat Oct  6 12:04:26 1990
  39. XX--- patchlvl.h    Mon Oct 22 17:36:08 1990
  40. XX***************
  41. XX*** 1,3 ****
  42. XX  /* dmake patch level, reset to 1 for each new version release. */
  43. XX  
  44. XX! #define PATCHLEVEL 1
  45. XX--- 1,3 ----
  46. XX  /* dmake patch level, reset to 1 for each new version release. */
  47. XX  
  48. XX! #define PATCHLEVEL 2
  49. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/tempnam.c    Sat Oct  6 12:05:12 1990
  50. XX--- msdos/tccdos/tempnam.c    Sun Oct 28 23:16:19 1990
  51. XX***************
  52. XX*** 2,8 ****
  53. XX  #include <stdio.h>
  54. XX  #include <string.h>
  55. XX  #include <stdlib.h>
  56. XX! #include <time.h>
  57. XX  
  58. XX  #if defined(max)
  59. XX  #   undef  max
  60. XX--- 2,8 ----
  61. XX  #include <stdio.h>
  62. XX  #include <string.h>
  63. XX  #include <stdlib.h>
  64. XX! #include <dos.h>
  65. XX  
  66. XX  #if defined(max)
  67. XX  #   undef  max
  68. XX***************
  69. XX*** 32,38 ****
  70. XX     if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
  71. XX     if( dir != NULL ) dl = strlen(dir);
  72. XX  
  73. XX!    if( (p = malloc((unsigned)(max(max(dl,tl),pl)+12))) == NULL )
  74. XX       return(NULL);
  75. XX  
  76. XX     *p = '\0';
  77. XX--- 32,38 ----
  78. XX     if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
  79. XX     if( dir != NULL ) dl = strlen(dir);
  80. XX  
  81. XX!    if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
  82. XX       return(NULL);
  83. XX  
  84. XX     *p = '\0';
  85. XX***************
  86. XX*** 49,61 ****
  87. XX        (void)strncat(p, prefix, 2);
  88. XX     }
  89. XX  
  90. XX!    sprintf( buf, "%ld", (long) time((time_t *)0) );
  91. XX!    (void)strcat(p, buf+strlen(buf)-6 );
  92. XX!    sprintf( buf, "%03d", count++ );
  93. XX     q=p+strlen(p)-6;
  94. XX!    *q++ = buf[0];
  95. XX!    *q++ = buf[1];
  96. XX!    *q++ = buf[2];
  97. XX  
  98. XX     if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  99. XX  
  100. XX--- 49,61 ----
  101. XX        (void)strncat(p, prefix, 2);
  102. XX     }
  103. XX  
  104. XX!    sprintf( buf, "%08x", _psp );
  105. XX!    buf[6]='\0';
  106. XX!    (void)strcat(p, buf );
  107. XX!    sprintf( buf, "%04d", count++ );
  108. XX     q=p+strlen(p)-6;
  109. XX!    *q++ = buf[0]; *q++ = buf[1];
  110. XX!    *q++ = buf[2]; *q++ = buf[3];
  111. XX  
  112. XX     if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  113. XX  
  114. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/startup.mk    Thu Oct  4 09:57:38 1990
  115. XX--- msdos/tccdos/startup.mk    Sun Oct 28 23:16:19 1990
  116. XX***************
  117. XX*** 53,59 ****
  118. XX     SHELLMETAS  := *"?<>|()&][$$\#`'
  119. XX     GROUPSUFFIX := .ksh
  120. XX     .MKSARGS    := yes
  121. XX!    DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${DIVSHELL}})
  122. XX     DIVSEP_shell_yes := \\\
  123. XX     DIVSEP_shell_no  := \\
  124. XX  .END
  125. XX--- 53,59 ----
  126. XX     SHELLMETAS  := *"?<>|()&][$$\#`'
  127. XX     GROUPSUFFIX := .ksh
  128. XX     .MKSARGS    := yes
  129. XX!    DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
  130. XX     DIVSEP_shell_yes := \\\
  131. XX     DIVSEP_shell_no  := \\
  132. XX  .END
  133. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/objswp.rsp    Thu Oct  4 10:25:38 1990
  134. XX--- msdos/tccdos/objswp.rsp    Tue Oct 30 16:28:47 1990
  135. XX***************
  136. XX*** 1,4 ****
  137. XX! c:\lib.tcc\c0c.obj+
  138. XX  objects\exec.obj+
  139. XX  objects\infer.obj+
  140. XX  objects\make.obj+
  141. XX--- 1,4 ----
  142. XX! c:\cc\tcc\lib\c0c.obj+
  143. XX  objects\exec.obj+
  144. XX  objects\infer.obj+
  145. XX  objects\make.obj+
  146. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/obj.rsp    Thu Oct  4 10:25:24 1990
  147. XX--- msdos/tccdos/obj.rsp    Tue Oct 30 16:27:56 1990
  148. XX***************
  149. XX*** 1,4 ****
  150. XX! c:\lib.tcc\c0c.obj+
  151. XX  objects\infer.obj+
  152. XX  objects\make.obj+
  153. XX  objects\stat.obj+
  154. XX--- 1,4 ----
  155. XX! c:\cc\tcc\lib\c0c.obj+
  156. XX  objects\infer.obj+
  157. XX  objects\make.obj+
  158. XX  objects\stat.obj+
  159. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/libswp.rsp    Thu Oct  4 10:25:38 1990
  160. XX--- msdos/tccdos/libswp.rsp    Tue Oct 30 16:28:48 1990
  161. XX***************
  162. XX*** 1 ****
  163. XX! c:\lib.tcc\cc
  164. XX--- 1 ----
  165. XX! c:\cc\tcc\lib\cc
  166. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/lib.rsp    Thu Oct  4 10:25:24 1990
  167. XX--- msdos/tccdos/lib.rsp    Tue Oct 30 16:27:57 1990
  168. XX***************
  169. XX*** 1 ****
  170. XX! c:\lib.tcc\cc
  171. XX--- 1 ----
  172. XX! c:\cc\tcc\lib\cc
  173. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/tccdos/config.mk    Thu Oct  4 09:27:28 1990
  174. XX--- msdos/tccdos/config.mk    Thu Oct 25 20:08:30 1990
  175. XX***************
  176. XX*** 13,20 ****
  177. XX  .EXPORT : TMPDIR
  178. XX  
  179. XX  # Definition of macros for library, and C startup code.
  180. XX! LDLIBS            = c:/lib.tcc/c$(MODEL)
  181. XX! CSTARTUP    = c:/lib.tcc/c0$(MODEL).obj
  182. XX  
  183. XX  # The following sources are required for TURBO C 2.0
  184. XX  OSR_SRC = tempnam.c utime.c
  185. XX--- 13,20 ----
  186. XX  .EXPORT : TMPDIR
  187. XX  
  188. XX  # Definition of macros for library, and C startup code.
  189. XX! LDLIBS            = c:/cc/tcc/lib/c$(MODEL)
  190. XX! CSTARTUP    = c:/cc/tcc/lib/c0$(MODEL).obj
  191. XX  
  192. XX  # The following sources are required for TURBO C 2.0
  193. XX  OSR_SRC = tempnam.c utime.c
  194. XX***************
  195. XX*** 33,38 ****
  196. XX--- 33,42 ----
  197. XX  #CFLAGS += -1
  198. XX  CFLAGS  += -I$(osrdir) -f- -d -O -N- -w-nod $(C_$(MODEL))
  199. XX  ASFLAGS += -t -mx $(S_$(MODEL))
  200. XX+ 
  201. XX+ # Debugging information for Turbo-C
  202. XX+ DB_CFLAGS  += -v
  203. XX+ DB_LDFLAGS += /v
  204. XX  
  205. XX  # See if we modify anything in the lower levels.
  206. XX  .IF $(OSENVIRONMENT) != $(NULL)
  207. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/switchar.c    Sat Oct  6 12:05:32 1990
  208. XX--- msdos/switchar.c    Mon Oct 22 16:52:57 1990
  209. XX***************
  210. XX*** 1,11 ****
  211. XX  /*
  212. XX  ** return switch char
  213. XX  */
  214. XX! #if defined(OS2)
  215. XX  #include <stdlib.h>
  216. XX! #else
  217. XX  #include <dos.h>
  218. XX! #endif /* OS2 */
  219. XX  #include <stdio.h>
  220. XX  #include "stdmacs.h"
  221. XX  
  222. XX--- 1,12 ----
  223. XX  /*
  224. XX  ** return switch char
  225. XX  */
  226. XX! #if defined(OS2) || defined(_MSC_VER)
  227. XX  #include <stdlib.h>
  228. XX! #endif
  229. XX! #if !defined(OS2)
  230. XX  #include <dos.h>
  231. XX! #endif /* !OS2 */
  232. XX  #include <stdio.h>
  233. XX  #include "stdmacs.h"
  234. XX  
  235. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/spawn.c    Sat Oct  6 12:05:46 1990
  236. XX--- msdos/spawn.c    Sun Oct 28 23:16:18 1990
  237. XX***************
  238. XX*** 1,4 ****
  239. XX! /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/RCS/spawn.c,v 1.1 90/10/06 12:05:46 dvadura Exp $
  240. XX  -- SYNOPSIS -- spawnvpe code to emulate spawnvpe call common to DOS compilers.
  241. XX  -- 
  242. XX  -- DESCRIPTION
  243. XX--- 1,4 ----
  244. XX! /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/RCS/spawn.c,v 1.1 90/10/06 12:05:46 dvadura Exp Locker: dvadura $
  245. XX  -- SYNOPSIS -- spawnvpe code to emulate spawnvpe call common to DOS compilers.
  246. XX  -- 
  247. XX  -- DESCRIPTION
  248. XX***************
  249. XX*** 5,11 ****
  250. XX  --    This implementation is further integrated into dmake in that it
  251. XX  --    determines the program to execute and if it's extension is either
  252. XX  --    .bat or .ksh it executes it using the appropriate shell based on the
  253. XX! --    setting of .MKSARGS.  Additionally if .MKSARGS is set then in addition
  254. XX  --    to the command tail getting built the arguments are also passed in the
  255. XX  --    environment pursuant to the published MKS argument passing conventions.
  256. XX  --    If the variable Swap_on_exec is set and the DOS OS supports it
  257. XX--- 5,11 ----
  258. XX  --    This implementation is further integrated into dmake in that it
  259. XX  --    determines the program to execute and if it's extension is either
  260. XX  --    .bat or .ksh it executes it using the appropriate shell based on the
  261. XX! --    setting of .MKSARGS.  If .MKSARGS is set then in addition
  262. XX  --    to the command tail getting built the arguments are also passed in the
  263. XX  --    environment pursuant to the published MKS argument passing conventions.
  264. XX  --    If the variable Swap_on_exec is set and the DOS OS supports it
  265. XX***************
  266. XX*** 51,57 ****
  267. XX  
  268. XX  #include <stdio.h>
  269. XX  #include <stdlib.h>
  270. XX! #include <process.h>
  271. XX  #include <dos.h>
  272. XX  #include <errno.h>
  273. XX  #include <string.h>
  274. XX--- 51,69 ----
  275. XX  
  276. XX  #include <stdio.h>
  277. XX  #include <stdlib.h>
  278. XX! 
  279. XX! #if defined(_MSC_VER) && _MSC_VER >= 600
  280. XX!     /* Ignore the MSC 6.0 library's "const"-riddled prototype
  281. XX!        for spawnvpe.
  282. XX!     */
  283. XX! # define spawnvpe _ignore_msc_spawnvpe
  284. XX! # include <process.h>
  285. XX! # undef spawnvpe
  286. XX!   int spawnvpe(int, char *, char **, char **);
  287. XX! #else
  288. XX! # include <process.h>
  289. XX! #endif
  290. XX! 
  291. XX  #include <dos.h>
  292. XX  #include <errno.h>
  293. XX  #include <string.h>
  294. XX***************
  295. XX*** 61,76 ****
  296. XX  #include "sysintf.h"
  297. XX  #include "extern.h"
  298. XX  
  299. XX- #ifdef DEBUG
  300. XX- static void _dump_blocks();
  301. XX- #endif
  302. XX- 
  303. XX  extern int Interrupted;
  304. XX  
  305. XX  /* variables and functions local to this file */
  306. XX  static char     *_findexec ANSI((char *, int *));
  307. XX  static char    **_getpath ANSI(());
  308. XX- static void      _dos_free  ANSI((char far *));
  309. XX  static char far *_dos_alloc ANSI((uint16));
  310. XX  
  311. XX  static uint16 _swap_mask;
  312. XX--- 73,83 ----
  313. XX***************
  314. XX*** 89,100 ****
  315. XX  /* How to make a long pointer */
  316. XX  #define CF(x) (char far *)x
  317. XX  
  318. XX- #if defined(_MSC60_)
  319. XX- #define CONST const
  320. XX- #else
  321. XX- #define CONST
  322. XX- #endif
  323. XX- 
  324. XX  int
  325. XX  spawnvpe(mode, program, av, ep)/*
  326. XX  =================================
  327. XX--- 96,101 ----
  328. XX***************
  329. XX*** 104,116 ****
  330. XX     path and to invoke the process. */
  331. XX  int  mode;
  332. XX  char *program;
  333. XX! CONST char **av;
  334. XX! CONST char **ep;
  335. XX  {
  336. XX     char **envp = ep;        /* Cause we are going to mess with it. */
  337. XX     char **argv = av;        /* Same with this one.               */
  338. XX     char cmdtail[129];
  339. XX-    char far *envsave;
  340. XX     char far *environment;
  341. XX     char *tail;
  342. XX     char *swptmp;
  343. XX--- 105,116 ----
  344. XX     path and to invoke the process. */
  345. XX  int  mode;
  346. XX  char *program;
  347. XX! char **av;
  348. XX! char **ep;
  349. XX  {
  350. XX     char **envp = ep;        /* Cause we are going to mess with it. */
  351. XX     char **argv = av;        /* Same with this one.               */
  352. XX     char cmdtail[129];
  353. XX     char far *environment;
  354. XX     char *tail;
  355. XX     char *swptmp;
  356. XX***************
  357. XX*** 193,199 ****
  358. XX     for(; *envp && **envp == '~'; envp++ );
  359. XX     for(i=0, envsize=_mks_args?cmdsize:1; envp[i] != NIL(char); i++ )
  360. XX        envsize += strlen(envp[i]) + 1;
  361. XX-    envsize += strlen(program)+3;    /* Save space for program name    */
  362. XX  
  363. XX     /* Set up temporary file for swapping */
  364. XX     swptmp = (doswap=Swap_on_exec&_swap_mask)?tempnam(NIL(char),"mk"):""; 
  365. XX--- 193,198 ----
  366. XX***************
  367. XX*** 203,213 ****
  368. XX      * place in the executable image so that when we swap out the environment
  369. XX      * is still present.  Use
  370. XX      *    _dos_alloc
  371. XX!     *    _dos_free
  372. XX!     * to allocate and free the environment segment */
  373. XX  
  374. XX-    envsave = environment = _dos_alloc( envsize = ((envsize+16)>>4) );
  375. XX- 
  376. XX     /* First copy the arguments preceeded by ~ character if we are using
  377. XX      * MKS style argument passing */
  378. XX     if( _mks_args )
  379. XX--- 202,211 ----
  380. XX      * place in the executable image so that when we swap out the environment
  381. XX      * is still present.  Use
  382. XX      *    _dos_alloc
  383. XX!     * to allocate the environment segment.  The segment is freed by the call
  384. XX!     * to exec. */
  385. XX!    environment = _dos_alloc( envsize = ((envsize+16)>>4) );
  386. XX  
  387. XX     /* First copy the arguments preceeded by ~ character if we are using
  388. XX      * MKS style argument passing */
  389. XX     if( _mks_args )
  390. XX***************
  391. XX*** 223,247 ****
  392. XX        register char *p = *envp;
  393. XX        while( *environment++ = *p++ );        /* Far dest, poss near ptr */
  394. XX     }
  395. XX  
  396. XX-    /* Terminate the environment with a NULL char, and then a word containing
  397. XX-     * the number 1 (why? beats me, but probably has something to do with
  398. XX-     * sticking the program name at the end of the environment, and is possibly
  399. XX-     * headed for an extension to argument passing conventions in future DOS
  400. XX-     * versions.  For now all they have is the name of the program. */
  401. XX-    *environment++ = '\0'; *environment++ = '\0'; *environment++ = '\1';
  402. XX-    {
  403. XX-       register char *p = program;
  404. XX-       while( *environment++ = *p++ );        /* Far dest, poss near ptr */
  405. XX-    }
  406. XX- 
  407. XX     /* Clear the interrupted flag, and exec  */
  408. XX     Interrupted = 0;
  409. XX!    i = exec(doswap,CF(program),CF(cmdtail),FP_SEG(environment),envsize,
  410. XX!             CF(swptmp));
  411. XX  
  412. XX!    /* Now free the environment segment */
  413. XX!    _dos_free( envsave );
  414. XX     if( doswap ) FREE(swptmp);
  415. XX  
  416. XX     /* If swap was interrupted then quit properly from dmake. */
  417. XX--- 221,233 ----
  418. XX        register char *p = *envp;
  419. XX        while( *environment++ = *p++ );        /* Far dest, poss near ptr */
  420. XX     }
  421. XX+    *environment = '\0';
  422. XX  
  423. XX     /* Clear the interrupted flag, and exec  */
  424. XX     Interrupted = 0;
  425. XX!    i = exec(doswap,CF(program),CF(cmdtail),FP_SEG(environment),CF(swptmp));
  426. XX  
  427. XX!    /* Now free the temporary file name */
  428. XX     if( doswap ) FREE(swptmp);
  429. XX  
  430. XX     /* If swap was interrupted then quit properly from dmake. */
  431. XX***************
  432. XX*** 387,398 ****
  433. XX  uint16 size;
  434. XX  {
  435. XX     union REGS r;
  436. XX-    union REGS t;
  437. XX  
  438. XX-    r.x.ax = 0x5801;
  439. XX-    r.x.bx = 0x0002;
  440. XX-    intdos( &r, &r );
  441. XX- 
  442. XX     r.h.ah = 0x48;
  443. XX     r.x.bx = size;
  444. XX  
  445. XX--- 373,379 ----
  446. XX***************
  447. XX*** 399,482 ****
  448. XX     intdos( &r, &r );
  449. XX     if( r.x.cflag ) No_ram();
  450. XX     
  451. XX-    t.x.ax = 0x5801;
  452. XX-    t.x.bx = 0x0000;
  453. XX-    intdos( &t, &t );
  454. XX- 
  455. XX     return( (char far *) MK_FP(r.x.ax, 0) );
  456. XX  }
  457. XX- 
  458. XX- 
  459. XX- #if defined(_MSC60_)
  460. XX- #pragma pack(1)
  461. XX- #endif
  462. XX- typedef struct {
  463. XX-    char      mode;
  464. XX-    unsigned int  owner;
  465. XX-    unsigned int  size;
  466. XX- } MB, *MBPTR;
  467. XX- #if defined(_MSC60_)
  468. XX- #pragma pack()
  469. XX- #endif
  470. XX- 
  471. XX- static void
  472. XX- _dos_free( pblock )/*
  473. XX- =====================
  474. XX-    ALERT!!!! Major GROSSNESS HERE!!!!  This routine calls DOS free to free
  475. XX-    a block of memory and then walks the DOS allocation chain from the current
  476. XX-    psp forward and coallesces any free blocks it finds into one large free
  477. XX-    block.  This prevents the No more memory error that was being caused by
  478. XX-    long makes causing fragmentation of DOS memory.  I can probably avoid this
  479. XX-    by using some weird combination of DOS calls, but I would have to figger
  480. XX-    out what calls under DOS cause the coalesce to happen.  Haven't found this
  481. XX-    so far so, for now, I will just go with this.  It work fine on my box :-)*/
  482. XX- char far *pblock;
  483. XX- {
  484. XX-    union REGS r;
  485. XX-    struct SREGS s;
  486. XX-    MB far *p;
  487. XX-    MB far *t;
  488. XX-    int flag = 0;
  489. XX- 
  490. XX-    s.es = FP_SEG(pblock);
  491. XX-    r.h.ah = 0x49;
  492. XX-    intdosx( &r, &r, &s );
  493. XX-    if( r.x.cflag ) Fatal( "FREE SEG" );
  494. XX- 
  495. XX-    p = (MB far *) MK_FP(_psp-1, 0);
  496. XX- 
  497. XX-    while(1) {
  498. XX-       if( p->owner == 0 )
  499. XX-          if( !flag ) {
  500. XX-         t = p;
  501. XX-         flag++;
  502. XX-      }
  503. XX-      else if( FP_SEG(t)+t->size+1 == FP_SEG(p) )
  504. XX-         t->size += p->size+1;
  505. XX- 
  506. XX-       if( p->mode == 'Z' ) break;
  507. XX-       p = (MB far *) MK_FP(FP_SEG(p)+p->size+1, 0);
  508. XX-    }
  509. XX- 
  510. XX- }
  511. XX- 
  512. XX- 
  513. XX- #ifdef DBUG
  514. XX- static void
  515. XX- _dump_blocks()/*
  516. XX- ================
  517. XX-    Walk DOS memory blocks and dump their headers. */
  518. XX- {
  519. XX-    MB far *p;
  520. XX- 
  521. XX-    p = (MB far *) MK_FP( _psp-1, 0 );
  522. XX- 
  523. XX-    while(1) {
  524. XX-       printf( "%c 0x%04x 0x%04x 0x%04x:%d\n", p->mode, FP_SEG(p), p->owner,
  525. XX-               p->size, p->size );
  526. XX- 
  527. XX-       if( p->mode == 'Z' ) break;
  528. XX-       p = (MB far *) MK_FP( FP_SEG(p)+p->size+1, 0 );
  529. XX-    }
  530. XX- }
  531. XX- #endif
  532. XX--- 380,384 ----
  533. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/runargv.c    Sat Oct  6 12:05:30 1990
  534. XX--- msdos/runargv.c    Mon Oct 22 16:53:11 1990
  535. XX***************
  536. XX*** 1,4 ****
  537. XX! /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/RCS/runargv.c,v 1.1 90/10/06 12:05:30 dvadura Exp $
  538. XX  -- SYNOPSIS -- run a sub process.
  539. XX  -- 
  540. XX  -- DESCRIPTION
  541. XX--- 1,4 ----
  542. XX! /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/RCS/runargv.c,v 1.1 90/10/06 12:05:30 dvadura Exp Locker: dvadura $
  543. XX  -- SYNOPSIS -- run a sub process.
  544. XX  -- 
  545. XX  -- DESCRIPTION
  546. XX***************
  547. XX*** 52,58 ****
  548. XX--- 52,60 ----
  549. XX  int    shell;
  550. XX  char    *cmd;
  551. XX  {
  552. XX+ #if ! defined(_MSC_VER)
  553. XX     extern char **environ;
  554. XX+ #endif
  555. XX     int status;
  556. XX     char **argv;
  557. XX  
  558. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/tempnam.c    Sat Oct  6 12:05:08 1990
  559. XX--- msdos/mscdos/tempnam.c    Sun Oct 28 23:16:18 1990
  560. XX***************
  561. XX*** 2,8 ****
  562. XX  #include <stdio.h>
  563. XX  #include <string.h>
  564. XX  #include <stdlib.h>
  565. XX! #include <time.h>
  566. XX  
  567. XX  #if defined(max)
  568. XX  #   undef  max
  569. XX--- 2,8 ----
  570. XX  #include <stdio.h>
  571. XX  #include <string.h>
  572. XX  #include <stdlib.h>
  573. XX! #include <dos.h>
  574. XX  
  575. XX  #if defined(max)
  576. XX  #   undef  max
  577. XX***************
  578. XX*** 14,20 ****
  579. XX  int _access();
  580. XX  
  581. XX  /* MSC stdio.h defines P_tmpdir, so let's undo it here */
  582. XX! /* Under DOS leave the default tmpdir pointing here!   */
  583. XX  #ifdef P_tmpdir
  584. XX  #undef P_tmpdir
  585. XX  #endif
  586. XX--- 14,20 ----
  587. XX  int _access();
  588. XX  
  589. XX  /* MSC stdio.h defines P_tmpdir, so let's undo it here */
  590. XX! /* Under DOS leave the default tmpdir pointing here!        */
  591. XX  #ifdef P_tmpdir
  592. XX  #undef P_tmpdir
  593. XX  #endif
  594. XX***************
  595. XX*** 28,34 ****
  596. XX     static         int count = 0;
  597. XX     register char *p, *q, *tmpdir;
  598. XX     int            tl=0, dl=0, pl;
  599. XX-    time_t      ctm;
  600. XX     char          buf[30];
  601. XX  
  602. XX     pl = strlen(P_tmpdir);
  603. XX--- 28,33 ----
  604. XX***************
  605. XX*** 36,42 ****
  606. XX     if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
  607. XX     if( dir != NULL ) dl = strlen(dir);
  608. XX  
  609. XX!    if( (p = malloc((unsigned)(max(max(dl,tl),pl)+12))) == NULL )
  610. XX       return(NULL);
  611. XX  
  612. XX     *p = '\0';
  613. XX--- 35,41 ----
  614. XX     if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
  615. XX     if( dir != NULL ) dl = strlen(dir);
  616. XX  
  617. XX!    if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
  618. XX       return(NULL);
  619. XX  
  620. XX     *p = '\0';
  621. XX***************
  622. XX*** 53,65 ****
  623. XX        (void)strncat(p, prefix, 2);
  624. XX     }
  625. XX  
  626. XX!    sprintf( buf, "%ld", (long) time((time_t *)0) );
  627. XX!    (void)strcat(p, buf+strlen(buf)-6 );
  628. XX!    sprintf( buf, "%03d", count++ );
  629. XX     q=p+strlen(p)-6;
  630. XX!    *q++ = buf[0];
  631. XX!    *q++ = buf[1];
  632. XX!    *q++ = buf[2];
  633. XX  
  634. XX     if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  635. XX  
  636. XX--- 52,64 ----
  637. XX        (void)strncat(p, prefix, 2);
  638. XX     }
  639. XX  
  640. XX!    sprintf( buf, "%08x", _psp );
  641. XX!    buf[6]='\0';
  642. XX!    (void)strcat(p, buf );
  643. XX!    sprintf( buf, "%04d", count++ );
  644. XX     q=p+strlen(p)-6;
  645. XX!    *q++ = buf[0]; *q++ = buf[1];
  646. XX!    *q++ = buf[2]; *q++ = buf[3];
  647. XX  
  648. XX     if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  649. XX  
  650. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/startup.mk    Thu Oct  4 09:56:54 1990
  651. XX--- msdos/mscdos/startup.mk    Sun Oct 28 23:16:17 1990
  652. XX***************
  653. XX*** 53,59 ****
  654. XX     SHELLMETAS  := *"?<>|()&][$$\#`'
  655. XX     GROUPSUFFIX := .ksh
  656. XX     .MKSARGS    := yes
  657. XX!    DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${DIVSHELL}})
  658. XX     DIVSEP_shell_yes := \\\
  659. XX     DIVSEP_shell_no  := \\
  660. XX  .END
  661. XX--- 53,59 ----
  662. XX     SHELLMETAS  := *"?<>|()&][$$\#`'
  663. XX     GROUPSUFFIX := .ksh
  664. XX     .MKSARGS    := yes
  665. XX!    DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
  666. XX     DIVSEP_shell_yes := \\\
  667. XX     DIVSEP_shell_no  := \\
  668. XX  .END
  669. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/mk60swp.bat    Thu Oct  4 10:26:28 1990
  670. XX--- msdos/mscdos/mk60swp.bat    Tue Oct 30 16:33:07 1990
  671. XX***************
  672. XX*** 1,64 ****
  673. XX  mkdir objects
  674. XX  masm -t -mx -Dmcompact msdos\exec.asm;
  675. XX  mv exec.obj objects
  676. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ infer.c
  677. XX  mv infer.obj objects
  678. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ make.c
  679. XX  mv make.obj objects
  680. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ stat.c
  681. XX  mv stat.obj objects
  682. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ expand.c
  683. XX  mv expand.obj objects
  684. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ string.c
  685. XX  mv string.obj objects
  686. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ hash.c
  687. XX  mv hash.obj objects
  688. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dag.c
  689. XX  mv dag.obj objects
  690. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dmake.c
  691. XX  mv dmake.obj objects
  692. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ path.c
  693. XX  mv path.obj objects
  694. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ imacs.c
  695. XX  mv imacs.obj objects
  696. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ sysintf.c
  697. XX  mv sysintf.obj objects
  698. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ parse.c
  699. XX  mv parse.obj objects
  700. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ getinp.c
  701. XX  mv getinp.obj objects
  702. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ quit.c
  703. XX  mv quit.obj objects
  704. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ basename.c
  705. XX  mv basename.obj objects
  706. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dump.c
  707. XX  mv dump.obj objects
  708. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ macparse.c
  709. XX  mv macparse.obj objects
  710. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ rulparse.c
  711. XX  mv rulparse.obj objects
  712. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ percent.c
  713. XX  mv percent.obj objects
  714. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ function.c
  715. XX  mv function.obj objects
  716. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\ruletab.c
  717. XX  mv ruletab.obj objects
  718. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\dirbrk.c
  719. XX  mv dirbrk.obj objects
  720. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\runargv.c
  721. XX  mv runargv.obj objects
  722. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\arlib.c
  723. XX  mv arlib.obj objects
  724. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\_chdir.c
  725. XX  mv _chdir.obj objects
  726. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\switchar.c
  727. XX  mv switchar.obj objects
  728. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\rmprq.c
  729. XX  mv rmprq.obj objects
  730. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\find.c
  731. XX  mv find.obj objects
  732. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\spawn.c
  733. XX  mv spawn.obj objects
  734. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\mscdos\tempnam.c
  735. XX  mv tempnam.obj objects
  736. XX! link @msdos\mscdos\obj60swp.rsp,dmake.exe,NUL.MAP;
  737. XX--- 1,64 ----
  738. XX  mkdir objects
  739. XX  masm -t -mx -Dmcompact msdos\exec.asm;
  740. XX  mv exec.obj objects
  741. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs infer.c
  742. XX  mv infer.obj objects
  743. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs make.c
  744. XX  mv make.obj objects
  745. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs stat.c
  746. XX  mv stat.obj objects
  747. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs expand.c
  748. XX  mv expand.obj objects
  749. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs string.c
  750. XX  mv string.obj objects
  751. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs hash.c
  752. XX  mv hash.obj objects
  753. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dag.c
  754. XX  mv dag.obj objects
  755. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dmake.c
  756. XX  mv dmake.obj objects
  757. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs path.c
  758. XX  mv path.obj objects
  759. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs imacs.c
  760. XX  mv imacs.obj objects
  761. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs sysintf.c
  762. XX  mv sysintf.obj objects
  763. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs parse.c
  764. XX  mv parse.obj objects
  765. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs getinp.c
  766. XX  mv getinp.obj objects
  767. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs quit.c
  768. XX  mv quit.obj objects
  769. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs basename.c
  770. XX  mv basename.obj objects
  771. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dump.c
  772. XX  mv dump.obj objects
  773. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs macparse.c
  774. XX  mv macparse.obj objects
  775. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs rulparse.c
  776. XX  mv rulparse.obj objects
  777. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs percent.c
  778. XX  mv percent.obj objects
  779. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs function.c
  780. XX  mv function.obj objects
  781. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\ruletab.c
  782. XX  mv ruletab.obj objects
  783. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\dirbrk.c
  784. XX  mv dirbrk.obj objects
  785. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\runargv.c
  786. XX  mv runargv.obj objects
  787. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\arlib.c
  788. XX  mv arlib.obj objects
  789. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\_chdir.c
  790. XX  mv _chdir.obj objects
  791. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\switchar.c
  792. XX  mv switchar.obj objects
  793. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\rmprq.c
  794. XX  mv rmprq.obj objects
  795. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\find.c
  796. XX  mv find.obj objects
  797. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\spawn.c
  798. XX  mv spawn.obj objects
  799. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\mscdos\tempnam.c
  800. XX  mv tempnam.obj objects
  801. XX! link @msdos\mscdos\objswp.rsp,dmake.exe,NUL.MAP;
  802. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/mk60.bat    Thu Oct  4 10:26:00 1990
  803. XX--- msdos/mscdos/mk60.bat    Tue Oct 30 16:32:40 1990
  804. XX***************
  805. XX*** 1,58 ****
  806. XX  mkdir objects
  807. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ infer.c
  808. XX  mv infer.obj objects
  809. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ make.c
  810. XX  mv make.obj objects
  811. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ stat.c
  812. XX  mv stat.obj objects
  813. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ expand.c
  814. XX  mv expand.obj objects
  815. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ string.c
  816. XX  mv string.obj objects
  817. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ hash.c
  818. XX  mv hash.obj objects
  819. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dag.c
  820. XX  mv dag.obj objects
  821. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dmake.c
  822. XX  mv dmake.obj objects
  823. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ path.c
  824. XX  mv path.obj objects
  825. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ imacs.c
  826. XX  mv imacs.obj objects
  827. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ sysintf.c
  828. XX  mv sysintf.obj objects
  829. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ parse.c
  830. XX  mv parse.obj objects
  831. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ getinp.c
  832. XX  mv getinp.obj objects
  833. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ quit.c
  834. XX  mv quit.obj objects
  835. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ basename.c
  836. XX  mv basename.obj objects
  837. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ dump.c
  838. XX  mv dump.obj objects
  839. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ macparse.c
  840. XX  mv macparse.obj objects
  841. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ rulparse.c
  842. XX  mv rulparse.obj objects
  843. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ percent.c
  844. XX  mv percent.obj objects
  845. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ function.c
  846. XX  mv function.obj objects
  847. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\ruletab.c
  848. XX  mv ruletab.obj objects
  849. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\dirbrk.c
  850. XX  mv dirbrk.obj objects
  851. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\runargv.c
  852. XX  mv runargv.obj objects
  853. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\arlib.c
  854. XX  mv arlib.obj objects
  855. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\_chdir.c
  856. XX  mv _chdir.obj objects
  857. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\switchar.c
  858. XX  mv switchar.obj objects
  859. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\rmprq.c
  860. XX  mv rmprq.obj objects
  861. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -D__STDC__=1 -DM_I86=1 -mc -Osecgle -Gs -D_MSC60_ msdos\mscdos\tempnam.c
  862. XX  mv tempnam.obj objects
  863. XX! link @msdos\mscdos\obj60.rsp,dmake.exe,NUL.MAP;
  864. XX--- 1,58 ----
  865. XX  mkdir objects
  866. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs infer.c
  867. XX  mv infer.obj objects
  868. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs make.c
  869. XX  mv make.obj objects
  870. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs stat.c
  871. XX  mv stat.obj objects
  872. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs expand.c
  873. XX  mv expand.obj objects
  874. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs string.c
  875. XX  mv string.obj objects
  876. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs hash.c
  877. XX  mv hash.obj objects
  878. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dag.c
  879. XX  mv dag.obj objects
  880. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dmake.c
  881. XX  mv dmake.obj objects
  882. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs path.c
  883. XX  mv path.obj objects
  884. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs imacs.c
  885. XX  mv imacs.obj objects
  886. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs sysintf.c
  887. XX  mv sysintf.obj objects
  888. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs parse.c
  889. XX  mv parse.obj objects
  890. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs getinp.c
  891. XX  mv getinp.obj objects
  892. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs quit.c
  893. XX  mv quit.obj objects
  894. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs basename.c
  895. XX  mv basename.obj objects
  896. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs dump.c
  897. XX  mv dump.obj objects
  898. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs macparse.c
  899. XX  mv macparse.obj objects
  900. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs rulparse.c
  901. XX  mv rulparse.obj objects
  902. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs percent.c
  903. XX  mv percent.obj objects
  904. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs function.c
  905. XX  mv function.obj objects
  906. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\ruletab.c
  907. XX  mv ruletab.obj objects
  908. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\dirbrk.c
  909. XX  mv dirbrk.obj objects
  910. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\runargv.c
  911. XX  mv runargv.obj objects
  912. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\arlib.c
  913. XX  mv arlib.obj objects
  914. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\_chdir.c
  915. XX  mv _chdir.obj objects
  916. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\switchar.c
  917. XX  mv switchar.obj objects
  918. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\rmprq.c
  919. XX  mv rmprq.obj objects
  920. XX! cl -c -DHELP -I. -Icommon -Imsdos -Imsdos\mscdos -AC -D__STDC__=1 -Osecgl -Gs msdos\mscdos\tempnam.c
  921. XX  mv tempnam.obj objects
  922. XX! link @msdos\mscdos\obj.rsp,dmake.exe,NUL.MAP;
  923. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/config.mk    Thu Oct  4 09:27:58 1990
  924. XX--- msdos/mscdos/config.mk    Mon Oct 29 14:45:10 1990
  925. XX***************
  926. XX*** 20,52 ****
  927. XX  SRC += $(OSR_SRC)
  928. XX  .SOURCE.h : $(osrdir)
  929. XX  
  930. XX! # Local configuration modifications for CFLAGS, there's local BSD includes
  931. XX! # too.
  932. XX  # If you have a 286, you can use -G2 or appropriate to get better code, 
  933. XX! # in that case uncomment the line below.
  934. XX  #CFLAGS += -G2
  935. XX- CFLAGS += -I$(osrdir) -D__STDC__=1 -DM_I86=1 $(C_$(MODEL))
  936. XX  ASFLAGS += -t -mx $(S_$(MODEL))
  937. XX  
  938. XX  # Redefine this, it isn't needed!
  939. XX  LDTAIL = ;
  940. XX  
  941. XX! # Debugging Flags
  942. XX! DB_CFLAGS     += -Zi
  943. XX! DB_LDFLAGS    += /co /li /map
  944. XX! DB_LDLIBS     +=
  945. XX  
  946. XX! # NO Debug flags, MSC 6.0 flags, set the environment variable MSC_VER to be
  947. XX! # 6.0 to get these by default when you make dmake using 'dmake'.
  948. XX  .IMPORT .IGNORE : MSC_VER
  949. XX! .IF $(MSC_VER) == 6.0
  950. XX!    NDB_CFLAGS    += -Osecgle -Gs -D_MSC60_
  951. XX!    DB_CFLAGS     += -D_MSC60_
  952. XX!    NDB_LDFLAGS   += /exe /packc /batch
  953. XX!    NDB_LDLIBS    +=
  954. XX  .ELSE
  955. XX!    NDB_CFLAGS    += -Zp
  956. XX!    DB_CFLAGS     += -Zp
  957. XX  .END
  958. XX  
  959. XX  # See if we modify anything in the lower levels.
  960. XX--- 20,69 ----
  961. XX  SRC += $(OSR_SRC)
  962. XX  .SOURCE.h : $(osrdir)
  963. XX  
  964. XX! # Local configuration modifications for CFLAGS 
  965. XX  # If you have a 286, you can use -G2 or appropriate to get better code, 
  966. XX! # in that case uncomment the line below.  (You can also simply set
  967. XX! # it in the CL environment variable.)
  968. XX  #CFLAGS += -G2
  969. XX  ASFLAGS += -t -mx $(S_$(MODEL))
  970. XX  
  971. XX  # Redefine this, it isn't needed!
  972. XX  LDTAIL = ;
  973. XX  
  974. XX! # Debugging libraries
  975. XX! DB_LDFLAGS += /co /li /map
  976. XX! DB_LDLIBS  +=
  977. XX  
  978. XX! # NO Debug MSC flags:
  979. XX! # Set the environment variable MSC_VER to be one of 4.0, 5.0, 5.1, or 6.0
  980. XX! # to get these by default when you make dmake using 'dmake'.
  981. XX! #
  982. XX! # Setting MSC_VER to one of the above sets the variable _MSC_VER appropriately
  983. XX! # and sets the flags appropriately.
  984. XX! 
  985. XX  .IMPORT .IGNORE : MSC_VER
  986. XX! MSC_VER *= 6.0              # If unset, assume 6.0 by default.
  987. XX! 
  988. XX! .IF $(MSC_VER) == 4.0
  989. XX!    CFLAGS      += -I$(osrdir) $(C_$(MODEL):s/A/m/)
  990. XX!    CFLAGS      += -DM_I86=1      # 5.0+ define this automatically
  991. XX!    CFLAGS      += -D__STDC__=1    # 5.0, 5.1, but not 6.0 do this automatically
  992. XX!    NDB_CFLAGS  +=
  993. XX!    DB_CFLAGS   += -Zi
  994. XX  .ELSE
  995. XX!    DB_CFLAGS   += -Zi
  996. XX!    CFLAGS      += -I$(osrdir) $(C_$(MODEL))
  997. XX!    .IF $(MSC_VER) != 6.0
  998. XX!       # For 5.0 and 5.1, we define _MSC_VER=500 or 510
  999. XX!       CFLAGS      += -D_MSC_VER=$(MSC_VER:s,.,,)0
  1000. XX!       NDB_CFLAGS  += -Oscl -Gs
  1001. XX!    .ELSE
  1002. XX!       # Microsoft C 6.0 auto defines _MSC_VER=600, but not __STDC__
  1003. XX!       CFLAGS      += -D__STDC__=1 # incredibly not auto done by 6.0
  1004. XX!       NDB_CFLAGS  += -Osecgl -Gs
  1005. XX!    .END
  1006. XX!    NDB_LDFLAGS += /exe /packc /batch
  1007. XX!    NDB_LDLIBS  +=
  1008. XX  .END
  1009. XX  
  1010. XX  # See if we modify anything in the lower levels.
  1011. XX***************
  1012. XX*** 55,63 ****
  1013. XX  .END
  1014. XX  
  1015. XX  C_s =
  1016. XX! C_m = -mm
  1017. XX! C_c = -mc
  1018. XX! C_l = -ml
  1019. XX  
  1020. XX  S_s = -Dmsmall
  1021. XX  S_m = -Dmmedium
  1022. XX--- 72,80 ----
  1023. XX  .END
  1024. XX  
  1025. XX  C_s =
  1026. XX! C_m = -AM
  1027. XX! C_c = -AC
  1028. XX! C_l = -AL
  1029. XX  
  1030. XX  S_s = -Dmsmall
  1031. XX  S_m = -Dmmedium
  1032. XX*** /u2/dvadura/src/generic/dmake/src-patchlvl1/msdos/mscdos/config.h    Sat Oct  6 12:05:06 1990
  1033. XX--- msdos/mscdos/config.h    Mon Oct 22 17:13:51 1990
  1034. SHAR_EOF
  1035. echo "End of part 3, continue with part 4"
  1036. echo "4" > s2_seq_.tmp
  1037. exit 0
  1038.  
  1039.